package eng;

import front.Scene;
import light.LSphere;

public class Engine extends EngineBase
{
    
    /*
     * Coordinate System:
     *    
     *             ^ +Z (Into screen)
     *            /
     *           /
     *          /
     *         o--------------> +X
     *        /|
     *       / |
     *      /  |
     *     v   |
     *    -Z   |
     *         |
     *         v +Y
     */
    
    public Engine()
    {
        super(
            1280, 720, 
//            2560, 1440 // 3,686,400
            1280, 720 // 921,600
//            640, 360 // 230,400
//            320, 180 // 57,600
//            160, 90 // 14,400
//            80, 45 // 3,600
        );
    }
    
    protected void onStart()
    {
        Scene s = new Scene("scene0");
        
        this.addScene(s);
        
        LSphere s0 = new LSphere();
        s0.setOrigin(new double[] { 1.5, -1.0, 2.5 });
        s0.setRadius(0.25);
        s0.setColor(new double[] { 1.0, 1.0, 1.0 });
        
        this.addLight(s0);
    }
    
}
